﻿using AutoRetailsEXE.Properties;
using CefSharp;
using CefSharp.WinForms;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace AutoRetailsEXE
{
    public partial class ChromePage : Form
    {
        static ChromePage() 
        {
            CefSettings _settings = new CefSettings();
            _settings.PersistSessionCookies = true;
            _settings.CachePath = AppDomain.CurrentDomain.BaseDirectory + "caches\\";
            Cef.Initialize(_settings);
        }
        public ChromePage()
        {
            InitializeComponent();
            this.WindowState = FormWindowState.Maximized;          
        }
        public CefSharp.WinForms.ChromiumWebBrowser GetChromiumWebBrowser() 
        {
            return chromiumWebBrowser1;
        }

    }
}
